/**
 * Created by hlh on 2015/7/20.
 */
'use strict';
var webpack = require('webpack');
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js');
var uglifyJsPlugin=new webpack.optimize.UglifyJsPlugin({minimize: true});
module.exports = {
    entry: {
        /*      './js/Component/PersonInfo.jsx',
         */
        entry:'./js/main/preHeat.jsx',
        progress:'./js/progress/progress.jsx'
    },
    output: {
        path: __dirname+'/js',
        filename: '[name].js'
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    },
    module: {
        loaders: [{
            test: /\.(js|jsx)$/,
            loader: 'babel-loader'
        }]
    },
/*    devtool: 'source-map',
 */   plugins: [commonsPlugin,uglifyJsPlugin]
};